package cn.edu.ncut.cs.springboot.petmanagementsystem.mapper;

import cn.edu.ncut.cs.springboot.petmanagementsystem.pojo.PetHealthRecord;
import cn.edu.ncut.cs.springboot.petmanagementsystem.vo.PetHealthRecordVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PetHealthRecordMapper extends BaseMapper<PetHealthRecord> {
    IPage<PetHealthRecordVO> selectHealthRecordPage(Page<PetHealthRecordVO> page, 
                                                     @Param("petId") Long petId, 
                                                     @Param("petName") String petName, 
                                                     @Param("status") Integer status);
    
    PetHealthRecordVO selectHealthRecordById(@Param("id") Long id);
}
